<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动的特性-脱标</title>
    <style>
        .box1 {
            width: 200px;
            height: 200px;
            background-color: blue;
            float: left;
        }

        .box2 {
            width: 400px;
            height: 400px;
            background-color: purple;
        }
    </style>
</head>

<body>
    <div class="box1">1,给这个盒子浮动</div>
    <div class="box2">2，这个盒子不给浮动</div>
</body>

</html>